//
//  QQDownloadInfo.h
//  Kiwi
//
//  Created by elvisgao on 2019/12/24.
//

#import "QQModelObject.h"

typedef NS_ENUM (NSUInteger, MADownloadResourceType) {
    //1 普通pkg包主包下载；2 普通pkg包子包下载； 3 应用图标下载； 4 基础库下载； 5 插件包下载
    MADownloadResourceType_MainPkg = 1,
    MADownloadResourceType_SubPkg = 2,
    MADownloadResourceType_AppIcon = 3,
    MADownloadResourceType_SDK = 4,
    MADownloadResourceType_Plugin = 5,
    MADownloadResourceType_OCS = 6,
    MADownloadResourceType_Image = 7,
    MADownloadResourceType_File = 8,
};

NS_ASSUME_NONNULL_BEGIN

@interface QQDownloadInfo : QQModelObject

@property (nonatomic, copy) NSString *url;

@property (nonatomic, assign) MADownloadResourceType resourceType;

@property (nonatomic, copy) NSString *appid;

// appType: 0 小程序  1 小游戏
@property (nonatomic, assign) NSInteger appType;

//url对应包的大小
@property (nonatomic) NSInteger packageSize;

@end

NS_ASSUME_NONNULL_END
